import { Component, OnInit } from '@angular/core';

import { DataService } from '../data.service';

@Component({
  selector: 'app-sendhistory',
  templateUrl: './sendhistory.component.html',
  styleUrls: ['./sendhistory.component.css']
})
export class SendhistoryComponent implements OnInit {

  sendHistory: any[] = [];

  constructor(private dataService: DataService) { }

  ngOnInit() {
    this.dataService.getSendHistory()
      .then(data => this.sendHistory = data)
  }

}
